package cn.com.nes.mybatis.callcenter.mapper;

import cn.com.nes.mybatis.callcenter.entity.CcUser;
import cn.com.nes.site.entity.dto.call.InstallPeopleDto;
import cn.com.nes.site.entity.vo.user.GetInstallPeopleVo;
import cn.com.nes.site.entity.vo.workOrder.SaveCcUserVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CcUserMapper extends BaseMapper<CcUser> {

    /**
     * 通过账号查询用户
     *
     * @param account 账号
     *
     * @return
     */
    CcUser selectByAccout(String account);


    List<InstallPeopleDto> getInstallPeoplePage(Page<InstallPeopleDto> page, @Param("vo") GetInstallPeopleVo vo);


    CcUser getUserByAgentId(@Param("agentUserUuid") String agentUserUuid);

    List<CcUser> getCcUserList(@Param("erUserId") String erUserId);

    void updateUserCoordinate(SaveCcUserVo operationUserLoginVo);
}
